<!doctype html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <title>{{$books->book_name}} - 全部短书评 - 夜读书</title>
    <meta name="viewport" content="width=device-width, height=device-height, user-scalable=no, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0">
    <meta name="format-detection" content="telephone=no">
    <meta name="author" content="夜读书">
    <meta name="description" content="{{mb_substr(strip_tags($books->neirongjianjie),0,160)}}">
    <meta name="keywords" content="{{$books->book_name}},{{$books->book_name}}的书评,{{$books->book_name}}简介,{{$books->book_name}}的作者,夜读书">
    <link rel="stylesheet" href="{{ asset('/bootstrap-3.3.5-dist/css/bootstrap.min.css') }}">
    <link rel="stylesheet" href="{{ asset('/style/css/mobile.css') }}">    
    <script src="{{ asset('/scripts/jquery/jquery-1.11.3.min.js') }}"></script>
    <script src="{{ asset('/bootstrap-3.3.5-dist/js/bootstrap.min.js') }}"></script>
</head>
<body>
@include('mobile.nav')
<div class="navbk">
	<div class="page" style="padding: 0 2px;">
		<a href="{{url('mobile/info/'. $books->book_id)}}"><img style="width: 30px;height: 40px;" src="{{url($books->bimg)}}"><span style="padding-left: 10px;color:#42bd56;">{{$books->book_name}}</span></a>
	</div>
</div>
<div id="commentlist" class="page" style="padding:0 5px;">
	<div class="aw-mod aw-question-comment">
      	<div class="mod-head">
        	<a href="{{url('mobile/comment/'. $books->book_id .'/commentpost')}}"><span class="" style="float: right;">发表书评</span></a>
        	<span class="p1">全部短书评({{count($bookscomments)}})</span>
      	</div>
    </div>
    @if(count($bookscomments)!=0)
    @foreach($bookscomments as $bookscomment)
      	<div class="mod-body aw-feed-list">
        	<div class="aw-item">
	          	<div class="mod-head">
	          		@if(Session::get('nameid') == $bookscomment->users->uid)
				    	<a class="aw-user-img aw-border-radius-5" href="{{url('mobile/myhome')}}">
				    @else
				    	<a class="aw-user-img aw-border-radius-5" href="{{url('mobile/uhome/'. $bookscomment->users->uid)}}">
				    @endif
		            @if($bookscomment->users->avatar_file_min!="")
		              <img src="http://www.yedushu.com/{{ $bookscomment->users->avatar_file_min }}">
		            @else
		              <img src="http://www.yedushu.com/usersface/default/avatar-min.png">
		            @endif
		            </a>
	            <div class="title">
	              	<p>
		              	@if(Session::get('nameid') == $bookscomment->users->uid)
					    	<a class="aw-user-name" href="{{url('mobile/myhome')}}">
					    @else
					    	<a class="aw-user-name" href="{{url('mobile/uhome/'. $bookscomment->users->uid)}}">
					    @endif
		              		{{ $bookscomment->users->user_name }}
		              	</a>
		              	<span class="rating allstar{{$bookscomment->rating}}0"></span>
	              	</p>
	            </div>
	            <div class="mod-body clearfix">
	              	<div class="markitup-box">{!! $bookscomment->message !!}</div>
	            </div>
	            <div class="mod-footer">
	              	<div class="meta clearfix">
	                	<span class="text-color-999 pull-right">{{date('Y-m-d H:i',$bookscomment->add_time)}}</span>
	              	</div>
	            </div>
	          	</div>
        	</div>              
      </div>   
    @endforeach
    @else
    <div class="aw-no-list" style="padding: 15px 0;text-align: center;">暂时没有书评！</div>
    @endif	
</div>
@include('mobile.footer')
</body>
</html>
